﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpShare.Storage.Searching.Parameters {
    public class DateCreatedSearchParameter : RangeSearchParameter<DateTime> {
        public DateCreatedSearchParameter(DateTime minValue, DateTime maxValue)
            : base(minValue, maxValue) {

        }

        protected override DateTime GetMatchValue(IStorageItem item) {
            return item.DateCreated;
        }
    }

    public class DateModifiedSearchParameter : RangeSearchParameter<DateTime> {
        public DateModifiedSearchParameter(DateTime minValue, DateTime maxValue)
            : base(minValue, maxValue) {

        }

        protected override DateTime GetMatchValue(IStorageItem item) {
            return item.DateModified;
        }
    }
}
